radius=280/(Math.exp(time/2)+1); angle=time*2; x=1280/2+radius*Math.cos(angle); y=720/2+radius*Math.sin(angle); z=-time*50; [x,y,z]